<!--    继承layouts/std_master.php模板  -->
@extends('layouts.std_master')


<!-- 重写内容  -->
@section('content')
<div class="col-lg-3"></div>
<div class="col-lg-6">
<h1 align="center">修改密码</h3>



	<form action="/std/modify_pwd" action="POST" onsubmit="return validate();">
		原密码：<input class="form-control" type="password" name="password" id="password"  /><br><br>
		新密码：<input class="form-control" type="password" name="new_password" id="new_password" /><br><br>
		确认密码：<input class="form-control" type="password" name="con_password" id="con_password"/><br><br>
		<input type="submit"  class="btn btn-success" name="submit" value="确认修改" />
	</form>
</div>
<script>
          function validate() {
              var pw1 = document.getElementById("new_password").value;
              var pw2 = document.getElementById("con_password").value;
              var pw3 = document.getElementById("password").value;
              if(pw1==''||pw2==''||pw3=='')
              {
                  alert("有空输入,请检查");
                  return false;
              }
              if(pw1 == pw2) {
                  //document.getElementById("tishi").innerHTML="<font color='green'>两次密码相同</font>";
                return true;
                //   document.getElementById("submit").disabled = false;
              }
              else {
                  alert("您输入的两次密码不一致,请检查");
                  //document.getElementById("tishi").innerHTML="<font color='red'>两次密码不相同</font>";
                return false;
                // document.getElementById("submit").disabled = true;
              }
          }
      </script>
@endsection